DEF_PROJECT=../../..
include $(DEF_PROJECT)/scripts/main.mk
name=xz
version=5.0.4
prefix=/usr
destdir=$(DIR_SYSROOT)
extdeps=eglibc-tools gcc-tools binutils-tools linux-header-tools

DL_SERV=http
DL_HOST=tukaani.org
DL_PATH=$(name)
DL_SUFFIX=tar.bz2

cflags+=--host=$(CC_TARGET)
cflags+=--build=$(CC_HOST)

post-build:
	$(MAKE) -C $(if $(build),$(build),$(source)) $(iflags)
	mv -v $(destdir)/usr/bin/{xz,lzma,lzcat,unlzma,unxz,xzcat} $(destdir)/bin
